package com.fudan.backend.pojo;

import com.fudan.backend.pojo.statics.AccountStatic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Account {
    private String accountId;
    private Double balance;
    private Integer status;

    public Account(String accountId, Double balance) {
        this.accountId = accountId;
        this.balance = balance;
        this.status = AccountStatic.STATUS_NORMAL;
    }

    public Account(String accountId) {
        this.accountId = accountId;
        this.balance = 0.0;
        this.status = AccountStatic.STATUS_NORMAL;
    }
}

